package com.zbkj.service.service;

import com.zbkj.common.model.admin.SystemAdmin;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.UserCommunity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.UserCommunityBindFrontReq;
import com.zbkj.common.request.UserCommunitySaveRequest;
import com.zbkj.common.request.UserCommunitySearchRequest;
import com.zbkj.common.response.UserCommunityFrontInfoResponse;
import com.zbkj.common.response.UserCommunityPageDataResponse;
import com.zbkj.common.response.UserCommunityDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description UserCommunityService 接口
* @date 2025-07-28
*/
public interface UserCommunityService extends IService<UserCommunity> {

    Boolean create(UserCommunitySaveRequest userCommunitySaveRequest);

    /**
     * 分页查询用户小区绑定表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<UserCommunityPageDataResponse> getList(UserCommunitySearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改用户小区绑定表
    * @param userCommunityRequest
    * @return
    */
    boolean update(UserCommunitySaveRequest userCommunityRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    UserCommunityDetailResponse getDetails(Integer id);

    UserCommunity getByUid(Integer uid);

    /**
     * 我的小区信息
     * @return
     */
    UserCommunityFrontInfoResponse getUserCommunityInfo();

    /**
     * 绑定小区
     * @param bindProductRequest
     * @return
     */
    Boolean bindCommunity(UserCommunityBindFrontReq bindProductRequest);

    /**
     * 解绑小区
     * @return
     */
    Boolean unbindCommunity();

}